 module.exports = function (UC, source, config, ArFor, cache, package) {
     var UserControl = UC;
     var router = function (req, res, next) {
         var ajaxTest = {
             error: 0
         };
         var Request = req.body;
         if (UserControl.getoff(req.session.key)) {
             Request = UserControl.GetForm(req.session.key, Request);
             UserControl.removevalue(req.session.key);
             req.session.destroy(); 
             setTimeout(function () {
                 res.Json(ajaxTest);
             }, 800);
         } else {
             ajaxTest = {
                 error: 1
             };
             res.Json(ajaxTest);
         }
     }
     return router;

 }